package com.financial.business.base.connector;

import com.financial.business.base.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * @author WANGNING
 * @date 2019/11/4
 * @email wyn20140226@aliyun.com
 * @des 汇收银业务feign
 */
@Service
@FeignClient(name = "financial-business-heemoney")
public interface HeemoneyBusinessFeign {

    /**
     * 汇收银报备
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/report", method = RequestMethod.POST)
    ApiResult report(@RequestBody String requestParam);

    /**
     * 汇收银支付
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/pay", method = RequestMethod.POST)
    ApiResult pay(@RequestBody String requestParam);

    /**
     * 汇收银分账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/split", method = RequestMethod.POST)
    ApiResult split(@RequestBody String requestParam);

    /**
     * 汇收银退款
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/refund", method = RequestMethod.POST)
    ApiResult refund(@RequestBody String requestParam);

    /**
     * 汇收银提现
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/withdrawal", method = RequestMethod.POST)
    ApiResult withdrawal(@RequestBody String requestParam);

    /**
     * 汇收银代付/转账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/payment", method = RequestMethod.POST)
    ApiResult payment(@RequestBody String requestParam);

    /**
     * 汇收银查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/heemoney/query", method = RequestMethod.POST)
    ApiResult query(@RequestBody String requestParam);
}
